package com.keepstudy.controller;

import com.keepstudy.DemoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Shengkang.Mo
 * @create 2021-02-09 10:16
 */
@Slf4j
@RestController
public class TestController {

    @Resource
    private DemoService demoService;

    @GetMapping("/starter")
    public Object starter() {
        demoService.sayHello();
        log.debug("message0");
        log.info("message1");
        log.warn("message2");
        log.error("message3");
        return "OK";
    }
}
